package com.moneywelcome.loanservicefacade.api;

import com.moneywelcome.loanservicefacade.forms.RepaymentForm;
import com.moneywelcome.results.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Api(tags = "还款服务")
@FeignClient(value = "credit-loan-service",contextId = "RepayService")
public interface RepayServiceApi {
    @ApiOperation("还款")
    @PostMapping("repayment")
    Result repayment(@RequestBody RepaymentForm form);
}
